package com.hmdp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmdp.dto.LoginFormDTO;
import com.hmdp.dto.Result;
import com.hmdp.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author jay
 */
public interface IUserService extends IService<User> {

    /**
     * 发送短信验证码并保存验证码
     */
    Result sendCode(String phone, HttpSession session);

    /**
     * 登录
     */
    Result login(LoginFormDTO loginForm, HttpSession session);


    /**
     * 登出
     */
    Result logout(HttpServletRequest request);

    /**
     * 签到
     */
    Result sign();

    /**
     * 连续签到统计
     */
    Result countSign();
}
